package com.yidianyanglao.core.bean;

import com.yidianyanglao.user.bean.UserBean;

/**
 * Created by Administrator on 2016/12/22.
 */
public class AliSecurityBean {

    private String protocolVersion;    //协议版本，值1.0     固定的
    private String phoneNumber;   //账号                    后台获取
    private String ip;             //ip地址                  后台获取
    private String sdkToken;         //安全token        APP参数
    private Long loginType;       //登录场景1：账号登录  2：扫码登录  3：短信验证码登录  0：其他    APP参数
    private Long source;         //1:pc 2:h5 3:app 4：其他    请求来源

    public AliSecurityBean(){
        this.protocolVersion = protocolVersion;
    }

    public AliSecurityBean(String phoneNumber,String ip,String sdkToken,int loginType,int source){
        this.phoneNumber = phoneNumber;
        this.protocolVersion = "1.0";
        this.ip=ip;
        this.sdkToken = sdkToken;
        this.loginType =(long)loginType;
        this.source = (long)source;
    }

    public String getProtocolVersion() {
        return protocolVersion;
    }

    public void setProtocolVersion(String protocolVersion) {
        this.protocolVersion = protocolVersion;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getSdkToken() {
        return sdkToken;
    }

    public void setSdkToken(String sdkToken) {
        this.sdkToken = sdkToken;
    }

    public Long getLoginType() {
        return loginType;
    }

    public void setLoginType(Long loginType) {
        this.loginType = loginType;
    }

    public Long getSource() {
        return source;
    }

    public void setSource(Long source) {
        this.source = source;
    }

    @Override
    public String toString() {
        return "AliSecurityBean{" +
                "protocolVersion='" + protocolVersion + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", ip='" + ip + '\'' +
                ", sdkToken='" + sdkToken + '\'' +
                ", loginType=" + loginType +
                ", source=" + source +
                '}';
    }
}
